package com.scpii.universal;

import java.io.IOException;
import org.mybatis.generator.api.ShellRunner;
import org.mybatis.generator.exception.InvalidConfigurationException;
import org.mybatis.generator.exception.XMLParserException;


public class TableForYou {

	/**
	 * 生成xml,mapper java,javaBean
	 * @param args
	 * @throws IOException
	 * @throws XMLParserException
	 * @throws InvalidConfigurationException
	 */
	public static void main(String[] args) throws IOException, XMLParserException, InvalidConfigurationException {
		
		String[] ar = {"-configfile","tool/generatorFile.xml","-overwrite"};
		ShellRunner.main(ar);
	}

}
